/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D5869B9E-CB4F-49C2-B92A-18B26CD7F19F"}
 */
function onAction_modificar(event) {
	forms.limbo_modificar.controller.loadRecords(limbo_cab_id)
	forms.limbo_modificar.controller.sort("columna asc")
	globals.formEnVentana('limbo_modificar','LIMBO','Modificación Asiento')
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"16C99CA9-D333-46FF-BC60-E04B34C91137"}
 * @AllowToRunInFind
 */
function onShow(firstShow, event) {
	var estado = controller.find()
	if (estado == false)
	{
    	globals.DIALOGS.showWarningDialog("Aviso","Error al hacer el find","Ok")
		return
	}
	hizo = globals.glegajo
	var cuantos = controller.search()
	if (cuantos == 0) {
    	globals.DIALOGS.showWarningDialog("Aviso","Sin asientos ingresados","Ok")
		return
	}
}
